package com.gues.controller;

import com.gues.eneity.Imgs;
import com.gues.service.ImgsService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class ImgsController {

    @Resource
    ImgsService imgsService;

    @GetMapping("/singleImgs")
    public @ResponseBody
    List<Imgs> singleImgs() {
        return imgsService.singleImgs();
    }

    @GetMapping("/doubleImgs")
    public @ResponseBody
    List<Imgs> doubleImgs() {
        return imgsService.doubleImgs();
    }
}
